package com.yimingkeji.log;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Describe:
 * @Auther: zhenlong.yang
 * @Date: 2018/11/23 17:39
 */
@SpringBootApplication
@RestController
@Slf4j
public class LogApp {
    public static void main(String[] args) {
        SpringApplication.run(LogApp.class, args);
    }

    @GetMapping("/")
    public String home(){
        log.info("访问了主页接口");
        return "hello world!";
    }
}
